<html>
<head><meta charset="utf-8"><title>mod-rs-paths · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/mod-rs-paths.html">mod-rs-paths</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="135859802"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/mod-rs-paths/near/135859802" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/mod-rs-paths.html#135859802">(Oct 15 2018 at 21:28)</a>:</h4>
<p>Is this an ok place to raise a concern about a beta bug? <br>
<a href="https://github.com/rust-lang/rust/issues/55094" target="_blank" title="https://github.com/rust-lang/rust/issues/55094">https://github.com/rust-lang/rust/issues/55094</a><br>
I'm worried that the release date is very close, and this seems to not be working as intended.</p>



<a name="135860067"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/mod-rs-paths/near/135860067" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/mod-rs-paths.html#135860067">(Oct 15 2018 at 21:32)</a>:</h4>
<p>this is a good place for that</p>



<a name="135860176"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/mod-rs-paths/near/135860176" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/mod-rs-paths.html#135860176">(Oct 15 2018 at 21:34)</a>:</h4>
<p>I agree this behavior looks wrong</p>



<a name="135860181"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/mod-rs-paths/near/135860181" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/mod-rs-paths.html#135860181">(Oct 15 2018 at 21:34)</a>:</h4>
<p>I would expect this code to just not be compileable, full stop</p>



<a name="135860207"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/mod-rs-paths/near/135860207" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/mod-rs-paths.html#135860207">(Oct 15 2018 at 21:34)</a>:</h4>
<p>in particular, with an inline module like <code>baz</code>:</p>
<div class="codehilite"><pre><span></span><span class="k">pub</span><span class="w"> </span><span class="k">mod</span> <span class="nn">baz</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="k">pub</span><span class="w"> </span><span class="k">mod</span> <span class="nn">qqq</span><span class="p">;</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>
</pre></div>


<p>I don't expect to be able to make non-inline modules like <code>pub mod qqq;</code></p>



<a name="135860209"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/mod-rs-paths/near/135860209" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/mod-rs-paths.html#135860209">(Oct 15 2018 at 21:35)</a>:</h4>
<p>because the intermediate module (baz) is not on the filesystem?</p>



<a name="135860212"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/mod-rs-paths/near/135860212" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/mod-rs-paths.html#135860212">(Oct 15 2018 at 21:35)</a>:</h4>
<p>but I remember that historically we'd .. permitted some madness here</p>



<a name="135860218"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/mod-rs-paths/near/135860218" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/mod-rs-paths.html#135860218">(Oct 15 2018 at 21:35)</a>:</h4>
<p>basically because the code did stuff and we didn't think to test it before Rust 1.0 ;)</p>



<a name="135860282"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/mod-rs-paths/near/135860282" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/mod-rs-paths.html#135860282">(Oct 15 2018 at 21:36)</a>:</h4>
<p>so I guess the question requires a bit of review of what the behavior is/was before the <code>non_modrs</code> feature</p>



<a name="135860297"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/mod-rs-paths/near/135860297" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/mod-rs-paths.html#135860297">(Oct 15 2018 at 21:36)</a>:</h4>
<p>I'll nominate the issue anyhow</p>



<a name="135860423"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/mod-rs-paths/near/135860423" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/mod-rs-paths.html#135860423">(Oct 15 2018 at 21:39)</a>:</h4>
<p><span class="user-mention" data-user-id="120518">@Eric Huss</span> are you the one that filed the bug?</p>



<a name="135860452"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/mod-rs-paths/near/135860452" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/mod-rs-paths.html#135860452">(Oct 15 2018 at 21:39)</a>:</h4>
<p>ok, thanks.<br>
no, someone else filed it.  I'm interested because I'm writing the docs for that feature.</p>



<a name="135860475"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/mod-rs-paths/near/135860475" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/mod-rs-paths.html#135860475">(Oct 15 2018 at 21:40)</a>:</h4>
<p>ok</p>



<a name="135860523"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/mod-rs-paths/near/135860523" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/mod-rs-paths.html#135860523">(Oct 15 2018 at 21:40)</a>:</h4>
<p>the behavior does seem strange to me</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>